home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Die Speccy' 97
/
Die Speccy' 97.iso
/
amiga_system
/
the_aminet
/
comm
/
cnet
/
trek_quotes.lha
/
TrekQuotes2
< prev
next >
Wrap
Text File
|
1995-10-08
|
5KB
|
81 lines
/**************************************************************************\
$VER: Trek Quotes, v2.2 (8-Oct-95) by Dotoran!
\**************************************************************************/
options results ; signal on SYNTAX ; signal on ERROR ; signal on IOERR
tr=transmit ; se=sendstring
c1 = a /* a Color of Line # 1 in Quote. (ANY MCI) */
c2 = b /* b Color of Author Line of Quote. (ANY MCI) */
c.1 = 1 /* 1 Color of Left Moon. (ANY MCI) */
c.2 = 8 /* 8 Color of Right Moon. (ANY MCI) */
c.3 = 3 /* 3 Color of Small Stars, LEFT of Planet. (ANY MCI) */
c.4 = 3 /* 3 Color of Small Stars, RIGHT of Planet. (ANY MCI) */
c.5 = a /* a Color of Large Stars, LEFT of Planet. (ANY MCI) */
c.6 = a /* a Color of Large Stars, RIGHT of Planet. (ANY MCI) */
c.7 = 4 /* 4 Color of Planetary Water. (0 thru 7 ONLY!) */
c.8 = f /* f Color of Polar Ice Cap. (ANY MCI) */
c.9 = b /* b Color of LEFT Continent. (ANY MCI) */
c.10 = d /* d Color of RIGHT Continent. (ANY MCI) */
rand = 1 /* Use Random Planet Settings? (0=No, 1=Yes) */
delay = 0 /* Before Continuing To BBS. (0 thru 9 ONLY! */
total = 130 /* Total Number of Trek Quotes On File. (No Limit!) */
size = 150 /* Maximum Length of Longest Quote Line. (Rounded UP) */
build = 0 /* "1" will RePack the ".dat" file. (See README! File!) */
if build=1 then signal MAKE
if rand=1 then do ; do i=1 to 10 ; call RMCI(16)
c.i=c ; end i ; call RMCI(7) ; c.7=c ; end
z7='z'||c.7 ; a='c' ; do i=1 to 10 ; c.i=a||c.i ; end i
call ENTERPRISE ; a=random(1,total,time('s')) ; ptr=(a*size)-size
call open(f1,'pfiles:TrekQuotes2.dat','r') ; call seek(f1,ptr,'b')
quote=readch(f1,size) ; call close(f1) ; quote=strip(quote,'b',d2c(0))
parse var quote l.1'|'l.2'|'l.3'|'l.4'|'l.5 ; ctr=0
do i=1 to 5 ; if l.i~='' then ctr=ctr+1 ; end i
do i=1 to ctr ; c3=c1 ; if i=ctr then c3=c2
tr 'c'c3||center(l.i,73) ; end i ; call PLANET ; exit
ENTERPRISE:
tr 'f1Ccf.Cc6To cbboldly c6go where no cfone c6has gone before...Ccf.'
tr ' cb.Ccf.C*Cc6.Ccf.C. cb.'
tr ' cf. . c7▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄c9▄ cb.Ccf. c7▄▄Ccf.Cc6.'
tr 'Ccf.Cc7▀z7c8══c0NCCc8-c01701c8══════════z0c9█▀ c7▄▄▄▄▄▄▄▄z7c8...└──┘...z0c7▄▄▄▄▄▄▄▄▄Ccf.'
tr ' c6.Cc7▀▄ ▀▄C▄▀ ▄▀▀▀▀▀█z7c8..........z0c7█▀▀▀▀▀▀▀'
tr 'Ccb. cf. c7▄▄▄▄▄▄▄▄█▄▄█▄▄▄█▄▄█ c6.Cce▀▀Ccf.Cc6.'
tr 'Ccf*Cc7▀▀█z7c8■.■.■.■.■.■.■.■z0c7█cb■Ccf.Ccb. c7.'
tr ' .C. c6.Ccf.Ccb.'
return
PLANET:
tr c.1'▄ 'c.3'. 'c.5'* 'c.3'. . . 'c.7'▄▄▄▄'c.8'▄▄▄▄▄▄▄▄▄▄▄▄'c.7'▄▄▄▄▄▄▄ 'c.4'. 'c.6'* 'c.4'. . 'c.2'▄▄ 'c.4'.'
tr c.1'██▄ 'c.3'. . . 'c.7'▄▄▄██████'c.8||z7'▀▀▀███▀▀▀z0'c.7'██████████▄▄▄ 'c.4'. . . 'c.2'▄████▄'
tr c.1'████▄ 'c.3'. 'c.5'* 'c.9'▄▄▄████'z7'▄z0'c.7'█████████████'c.10||z7'▄▄▄▄████▄▄▄z0'c.7'████▄▄▄ 'c.6'* 'c.4'.'c.2'▀████▀ 'c.4'.'
tr c.1'████▀ 'c.3'. . 'c.7'▄'c.9'▄▄██████████'c.7'█████████████'c.10||z7'▀██████████'c.7'███'c.10'▄▄▄█z0'c.7'▄▄▄ 'c.4'. 'c.2'▀▀'
tr c.1'██▀ 'c.3'. 'c.5'* 'c.7'▄▄▄███'c.9'██████████'z7'▀z0'c.7'█████████████'c.10||z7'▄███████▀'c.7'█'c.10'▄▄███████▄z0'c.7'██▄▄▄ 'c.4'. . 'c.6'*'
tr c.1'▀ 'c.3'. . 'c.7'▄████████'c.9'███████'z7'▀z0'c.7'██████████████'c.10||z7'▀▀▀▀'c.7'██'c.10'▀███████████▄z0'c.7'████████▄ 'c.4'.'
tr c.3' . 'c.7'███████████'c.9||z7'▀█▀z0'c.7'██████████████████████████'c.10||z7'▀█████▀▀▀▀z0'c.7'███████████ 'c.6'* 'c.4'.'
tr 'C'z7||c.8' [s'delay'] TrekQuotes, v2.2 by Dotoran! Quote # 'left(a,3)' z0'
do i=delay to 1 by -1 ; se 'u'z7||i'w1<1' ; end i ; se 'z0'
return
RMCI:
parse arg hi ; a='0123456789abcdef'
b=random(1,hi,time('s')) ; c=substr(a,b,1)
return
MAKE:
tr 'f1n5cfRePacking cb"caTrekQuotes2.datcb" cfNow:'
call open(f1,'pfiles:TrekQuotes2.txt','r') ; se 'n1cfReading: k1'
do i=1 to total ; l.i=readln(f1) ; se '>' ; end i ; tr 'k0c9Done.'
call close(f1) ; call open(f1,'pfiles:TrekQuotes2.dat','w')
se 'n1cfPacking: k1' ; do i=1 to total ; a=size-length(l.i)
b=copies(d2c(0),a) ; call writech(f1,l.i) ; call writech(f1,b) ; se '>'
end i ; call close(f1) ; tr 'k0c9Done.n1'
tr 'c6Reset cbBUILD c6to cf"cd0cf" c6Now.' ; exit
SYNTAX:;ERROR:;IOERR:;e1=' Error: 'rc' ('errortext(rc)')'
e2=' Line: 'left(sigl,4)'File:';gu 1311992;a=result;gu 1311960;b=result;c='"'a||b'"';e2=e2' 'c;tr e1;tr e2;logentry e1;logentry e2
e=sourceline(sigl);do while e~='';e3='Source: 'left(e,37);tr e3;logentry e3;e=substr(e,38);end;bufferflush;exit
/** Last Edited: 8-Oct-95 *************************************************\
\****************************************** Frontiers BBS (716)/823-9892 **/